<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>小说详细信息</title>
		<style type="text/css">
			table {
					
			}
			td {
				padding: 10px;
			}

			.k {
				text-align: right;
				width: 130px;
			}

			.v {
				text-align: left;
				width: 130px;
			}
		</style>
		<script type="text/javascript" src="/secondhand/js/jquery-3.2.1.js"></script>
		<script type="text/javascript">
			$(function () {
				var params = new URLSearchParams(window.location.search);
				var goodsid = params.get("goodsid");
				if (goodsid != null && goodsid != ""){
					//查看详细信息
					var url = "/secondhand/queryByGoodsId.shopping";
					var jsonParm = {"goodsid":goodsid};
					$.post(url,jsonParm,function (data) {
						var jsonObj = JSON.parse(data);
						$("#goodsidVal").text(jsonObj.goodsid);
						$("#goodsnameVal").text(jsonObj.goodsname);
						$("#goodspriceVal").text(jsonObj.goodsprice);
						$("#createtimeVal").text(jsonObj.createtime);
						$("#descriptionVal").text(jsonObj.description);
						$("#userfullnameVal").text(jsonObj.userfullname);
						$("#phoneVal").text(jsonObj.phone);
					})
				}
			})
		</script>
	</head>
	<body>
		<table align="center" style="margin-top: 10px;border-collapse:separate; border-spacing:0 20px;">
			<tr>
				<td class="k" id="1">商品ID :</td>
				<td class="v" id="goodsidVal"></td>
				<td class="k" id="2">商品名称 :</td>
				<td class="v" id="goodsnameVal"></td>
			</tr>
			<tr>
				<td class="k" id="3">商品价格 :</td>
				<td class="v" id="goodspriceVal"></td>
				<td class="k" id="4">上架时间 :</td>
				<td class="v" id="createtimeVal"></td>
			</tr>
			<tr>
				<td class="k" id="5">卖家名称 :</td>
				<td class="v" id="userfullnameVal"></td>
				<td class="k" id="6">卖家电话 :</td>
				<td class="v" id="phoneVal"></td>
			</tr>
			<tr>
				<td class="k" id="7">实物图片 :</td>
				<td class="v"><img src="../../bookimg/10000.jpg" height="50"></td>
				<td class="k" id="8">描述 :</td>
				<td class="v" id="descriptionVal"></td>
			</tr>
		</table>
		<div style="width: 100%;text-align: center;"><a id="backcart" href="/secondhand/toList.shopping?pageNo=1&likeValue=">返回购物车列表</a></div>
	</body>
</html>
